﻿<%@ Page Title="编辑案例" Language="C#" MasterPageFile="Function.Master" AutoEventWireup="true" ValidateRequest="false" CodeBehind="ProjectEdit.aspx.cs" Inherits="LEARNREN.COM.WebSite.Admin.ProjectEdit" %>

<%@ Register Src="../UserDefinedControls/SelectCatalogueDropDownList.ascx" TagName="SelectCatalogueDropDownList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="script/jquery-ui-theme/ui.datepicker.css" rel="stylesheet" type="text/css" />
    <script src="script/ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <link href="../umeditor1_2_2-utf8-net/themes/default/css/umeditor.min.css" rel="stylesheet" type="text/css" />
    <script src="../umeditor1_2_2-utf8-net/umeditor.config.js" type="text/javascript"></script>
    <script src="../umeditor1_2_2-utf8-net/umeditor.min.js" type="text/javascript"></script>
    <script src="../umeditor1_2_2-utf8-net/lang/zh-cn/zh-cn.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(
            function () {
                initEditor();
                $.datepicker.setDefaults($.extend({ showMonthAfterYear: false }, $.datepicker.regional['']));
                $("#<%=this.ProjectDateTextBox.ClientID %>").datepicker($.datepicker.regional['zh-CN']);
            }
        );

        function initEditor() {
            var um = UM.getEditor('<%=txtProjectDiscription.ClientID%>');
            um.setWidth("100%");
            um.setHeight("300");

            $(".edui-body-container").css("width", "");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form runat="server" class="ui-widget" style="color: #222;">
    <asp:ScriptManager runat="server" ID="ScriptManager1">
    </asp:ScriptManager>
    <div class="editblock">
        <asp:Label ID="ProjectNameLabel" runat="server" AssociatedControlID="ProjectNameTextBox">案例名称:</asp:Label>
        <asp:TextBox ID="ProjectNameTextBox" CssClass="textEntry" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="ProjectNameRequired" runat="server" ControlToValidate="ProjectNameTextBox" CssClass="failureNotification" ErrorMessage="必须填写“案例名称”。" ToolTip="必须填写“案例名称”。" ValidationGroup="ProjectEditValidationGroup">*</asp:RequiredFieldValidator>
    </div>
    <div class="editblock">
        <label style="line-height: 25px; float: left;">所属栏目:&nbsp;</label>
        <asp:UpdatePanel runat="server" ID="UpdatePanel1" style="float: left;">
            <ContentTemplate>
                <uc1:SelectCatalogueDropDownList ID="SelectCatalogueDropDownList1" runat="server" CssClass="textEntry ui-widget-content ui-corner-all" EnableValidation="true" ValidationGroup="ProjectEditValidationGroup" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div class="clear">
    </div>
    <div class="editblock">
        <label>案例图片</label><asp:Label ID="lblNotice" runat="server" Text="（不修改请留空）" ForeColor="Red" Visible="false"></asp:Label><span>:</span>
        <asp:FileUpload ID="ProjectImageFileUpLoad" CssClass="textEntry" runat="server"></asp:FileUpload>
    </div>
    <div class="clear">
    </div>
    <div class="editblock">
        <asp:Label ID="ProjectDateLabel" runat="server" AssociatedControlID="ProjectDateTextBox">案例时间:</asp:Label>
        <asp:TextBox ID="ProjectDateTextBox" CssClass="textEntry" runat="server" Style="position: relative; z-index: 100;"></asp:TextBox>
    </div>
    <div class="clear">
    </div>
    <div style="float: none;">
        <asp:Label ID="ProjectDiscriptionLabel" runat="server" AssociatedControlID="txtProjectDiscription">详细描述:</asp:Label>
        <asp:TextBox ID="txtProjectDiscription" runat="server" TextMode="MultiLine" Rows="10">
        </asp:TextBox>
    </div>
    <div class="clear" style="height: 10px;">
    </div>
    <div style="float: none; text-align: right">
        <asp:Button ID="btnSave" ValidationGroup="ProjectEditValidationGroup" runat="server" CommandName="Save" Text="保存" OnClick="btnSave_Click" />
    </div>
    </form>
</asp:Content>
